<?php 
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use yii\helpers\Url;
?>
<style>
	caption{
		text-align: center;
		color: red;
		font-size:22px;
	}

	table{
		width:500px;
	}

	tr > td:first-of-type
	{
		width:20%;
		text-align: center;
	}

	tr>td>input{
		padding:5px;
		width:100%;
	}
	.form-group{
		/*border:1px solid #545;*/
		width: 500px;
    	text-align: right;
    	margin: 10px auto 0px;
	}
</style>
   <?php $form = ActiveForm::begin([
            'method' => 'post',
     ]); ?>

	<table  border='1px'  align='center'>
		<caption align="center" >添加一条数据</caption>
		
		<tr>
			<td>图片名称</td>
			<td><input  type='text' size='36'  name='imgurl'></td>
		</tr>
		<tr>
			<td>状态</td>
			<td><input  type='text' size='36'  name='status'></td>
		</tr>
		<tr>
			<td>标签</td>
			<td><input  type='text' size='36'  name='flag'></td>
		</tr>
		
	</table>

    <div class="form-group">
    			<a class='btn btn-success' href="<?php echo Url::to(['sqlcombat/index'])?>"> 返回 </a>
        <?= Html::submitButton('发布', ['class' => 'btn btn-success', 'name' => 'login-button']) ?>
    </div>

<?php ActiveForm::end(); ?>